package parserUML;

import java.io.Serializable;


/**
 * 
 */

/**
 * @author Guillaume Chapuis
 *
 */
public class AttributeObject extends VarObject implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6003921687037418844L;

	public AttributeObject(String sName, String sType){
		super(sName, sType);
	}
	
	public String toString(){
		String res="";
		if(!this.modifiers.isEmpty()){
			res = "(";
			for(String mod : modifiers){
				res+=mod+", ";
			}
			res = res.substring(0, res.length()-2)+") ";
		}
		res+=getName()+" : "+getType();
		return res;
	}
}
